$(function() {
	var search = location.search;
	var brandTitleId = search.slice(4);
	$.ajax({
		url:'http://127.0.0.1:3000/api/getbrandproductlist',
		data:{brandtitleid: brandTitleId, pagesize: 4},
		success: function(data) {
			console.log(data);
			// var html = template('template', data);

			var html = template('template2', data);
			var con2 = document.getElementById('container2');
			con2.innerHTML = html;
			

	
		}

	})

})
